package cn.com.company.common.redis;

/**
 * Title: redis常量类<br>
 * Description: redis常量类<br>
 *
 */
public class RedisConstant {
  /**
   * 默认数据缓存过期时间（秒）
   */
  public static final int EXPIRES_TIME_SECONDS = 24 * 60 * 60;
  /**
   * 锁过期时间(秒)
   */
  public static final int LOCK_EXPIRES_TIME_SECONDS = 5 * 60;
  /**
   * 加锁成功
   */
  public static final String LOCK_SUCCESS = "OK";
  /**
   * 当key不存在时，进行set操作
   */
  public static final String SET_IF_NOT_EXIST = "NX";
  /**
   * 设置过期时间
   */
  public static final String SET_WITH_EXPIRE_TIME = "PX";
  /**
   * 释放成功
   */
  public static final Long RELEASE_SUCCESS = 1L;
  /**
   * set成功
   */
  public static final Long SET_SUCCESS = 1L;
}
